package com.xinz.command;

import java.util.HashMap;
import java.util.Map;

public class CommandSet {

	private static CommandSet instance = null;
	
	private Map<String, Command> cmdSet = new HashMap<String, Command>();
	
	private CommandSet() {
		// ========== Player ==========
		// 查看玩家属性
		cmdSet.put("m_VP", new com.xinz.command.admin.player.ViewPlayerCmd());
	}
	
	public static CommandSet getInstance() {
		if(instance == null) {
			instance = new CommandSet();
		}
		return instance;
	}
	
	public Command getCommand(String cmdName) {
		return cmdSet.get(cmdName);
	}
}
